﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client
{
    public partial class ThongKe : Form
    {
        //Tao bien report de nhan gia tri report tren server tu form cha
        public string[] report;
        public delegate void ReportHanler(DateTime ngaythongke);
        public event ReportHanler ReportEvent;
        public ThongKe()
        {
            InitializeComponent();
        }

        private void ThongKe_Load(object sender, EventArgs e)
        {
            
            
        }

        private void btnclose_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Close();
        }


      
        private void btnreport_Click(object sender, EventArgs e)
        {
            if (ReportEvent != null)
            {
                ReportEvent(dateTimePicker1.Value);
            }

        }

        private void ThongKe_FormClosing(object sender, FormClosingEventArgs e)
        {
            tvReport.Nodes.Clear();
        }
    }
}
